Optimal. Leaf size=89 \[ \frac {1}{16} (6 a-b) x+\frac {(6 a-b) \cosh (c+d x) \sinh (c+d x)}{16 d}+\frac {(6 a-b) \cosh ^3(c+d x) \sinh (c+d x)}{24 d}+\frac {b \cosh ^5(c+d x) \sinh (c+d x)}{6 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 89, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {3270, 393, 205,
212} \begin {gather*} \frac {(6 a-b) \sinh (c+d x) \cosh ^3(c+d x)}{24 d}+\frac {(6 a-b) \sinh (c+d x) \cosh (c+d x)}{16 d}+\frac {1}{16} x (6 a-b)+\frac {b \sinh (c+d x) \cosh ^5(c+d x)}{6 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 212
Rule 393
Rule 3270
Rubi steps
\begin {align*} \int \cosh ^4(c+d x) \left (a+b \sinh ^2(c+d x)\right ) \, dx &=\frac {\text {Subst}\left (\int \frac {a-(a-b) x^2}{\left (1-x^2\right )^4} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac {b \cosh ^5(c+d x) \sinh (c+d x)}{6 d}+\frac {(6 a-b) \text {Subst}\left (\int \frac {1}{\left (1-x^2\right )^3} \, dx,x,\tanh (c+d x)\right )}{6 d}\\ &=\frac {(6 a-b) \cosh ^3(c+d x) \sinh (c+d x)}{24 d}+\frac {b \cosh ^5(c+d x) \sinh (c+d x)}{6 d}+\frac {(6 a-b) \text {Subst}\left (\int \frac {1}{\left (1-x^2\right )^2} \, dx,x,\tanh (c+d x)\right )}{8 d}\\ &=\frac {(6 a-b) \cosh (c+d x) \sinh (c+d x)}{16 d}+\frac {(6 a-b) \cosh ^3(c+d x) \sinh (c+d x)}{24 d}+\frac {b \cosh ^5(c+d x) \sinh (c+d x)}{6 d}+\frac {(6 a-b) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\tanh (c+d x)\right )}{16 d}\\ &=\frac {1}{16} (6 a-b) x+\frac {(6 a-b) \cosh (c+d x) \sinh (c+d x)}{16 d}+\frac {(6 a-b) \cosh ^3(c+d x) \sinh (c+d x)}{24 d}+\frac {b \cosh ^5(c+d x) \sinh (c+d x)}{6 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 63, normalized size = 0.71 \begin {gather*} \frac {72 a c+72 a d x-12 b d x+(48 a-3 b) \sinh (2 (c+d x))+3 (2 a+b) \sinh (4 (c+d x))+b \sinh (6 (c+d x))}{192 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.70, size = 67, normalized size = 0.75
method | result | size |
default | \(\frac {\left (-\frac {b}{32}+\frac {a}{2}\right ) \sinh \left (2 d x +2 c \right )}{2 d}+\frac {\left (\frac {b}{16}+\frac {a}{8}\right ) \sinh \left (4 d x +4 c \right )}{4 d}+\frac {3 a x}{8}-\frac {b x}{16}+\frac {b \sinh \left (6 d x +6 c \right )}{192 d}\) | \(67\) |
risch | \(-\frac {b x}{16}+\frac {3 a x}{8}+\frac {b \,{\mathrm e}^{6 d x +6 c}}{384 d}+\frac {{\mathrm e}^{4 d x +4 c} a}{64 d}+\frac {{\mathrm e}^{4 d x +4 c} b}{128 d}-\frac {{\mathrm e}^{2 d x +2 c} b}{128 d}+\frac {{\mathrm e}^{2 d x +2 c} a}{8 d}+\frac {{\mathrm e}^{-2 d x -2 c} b}{128 d}-\frac {{\mathrm e}^{-2 d x -2 c} a}{8 d}-\frac {{\mathrm e}^{-4 d x -4 c} a}{64 d}-\frac {{\mathrm e}^{-4 d x -4 c} b}{128 d}-\frac {b \,{\mathrm e}^{-6 d x -6 c}}{384 d}\) | \(160\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 152, normalized size = 1.71 \begin {gather*} \frac {1}{64} \, a {\left (24 \, x + \frac {e^{\left (4 \, d x + 4 \, c\right )}}{d} + \frac {8 \, e^{\left (2 \, d x + 2 \, c\right )}}{d} - \frac {8 \, e^{\left (-2 \, d x - 2 \, c\right )}}{d} - \frac {e^{\left (-4 \, d x - 4 \, c\right )}}{d}\right )} + \frac {1}{384} \, b {\left (\frac {{\left (3 \, e^{\left (-2 \, d x - 2 \, c\right )} - 3 \, e^{\left (-4 \, d x - 4 \, c\right )} + 1\right )} e^{\left (6 \, d x + 6 \, c\right )}}{d} - \frac {24 \, {\left (d x + c\right )}}{d} + \frac {3 \, e^{\left (-2 \, d x - 2 \, c\right )} - 3 \, e^{\left (-4 \, d x - 4 \, c\right )} - e^{\left (-6 \, d x - 6 \, c\right )}}{d}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 117, normalized size = 1.31 \begin {gather*} \frac {3 \, b \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{5} + 2 \, {\left (5 \, b \cosh \left (d x + c\right )^{3} + 3 \, {\left (2 \, a + b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} + 6 \, {\left (6 \, a - b\right )} d x + 3 \, {\left (b \cosh \left (d x + c\right )^{5} + 2 \, {\left (2 \, a + b\right )} \cosh \left (d x + c\right )^{3} + {\left (16 \, a - b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )}{96 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 250 vs.
\(2 (76) = 152\).
time = 0.46, size = 250, normalized size = 2.81 \begin {gather*} \begin {cases} \frac {3 a x \sinh ^{4}{\left (c + d x \right )}}{8} - \frac {3 a x \sinh ^{2}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{4} + \frac {3 a x \cosh ^{4}{\left (c + d x \right )}}{8} - \frac {3 a \sinh ^{3}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{8 d} + \frac {5 a \sinh {\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{8 d} + \frac {b x \sinh ^{6}{\left (c + d x \right )}}{16} - \frac {3 b x \sinh ^{4}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{16} + \frac {3 b x \sinh ^{2}{\left (c + d x \right )} \cosh ^{4}{\left (c + d x \right )}}{16} - \frac {b x \cosh ^{6}{\left (c + d x \right )}}{16} - \frac {b \sinh ^{5}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{16 d} + \frac {b \sinh ^{3}{\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{6 d} + \frac {b \sinh {\left (c + d x \right )} \cosh ^{5}{\left (c + d x \right )}}{16 d} & \text {for}\: d \neq 0 \\x \left (a + b \sinh ^{2}{\left (c \right )}\right ) \cosh ^{4}{\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 121, normalized size = 1.36 \begin {gather*} \frac {1}{16} \, {\left (6 \, a - b\right )} x + \frac {b e^{\left (6 \, d x + 6 \, c\right )}}{384 \, d} + \frac {{\left (2 \, a + b\right )} e^{\left (4 \, d x + 4 \, c\right )}}{128 \, d} + \frac {{\left (16 \, a - b\right )} e^{\left (2 \, d x + 2 \, c\right )}}{128 \, d} - \frac {{\left (16 \, a - b\right )} e^{\left (-2 \, d x - 2 \, c\right )}}{128 \, d} - \frac {{\left (2 \, a + b\right )} e^{\left (-4 \, d x - 4 \, c\right )}}{128 \, d} - \frac {b e^{\left (-6 \, d x - 6 \, c\right )}}{384 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.43, size = 76, normalized size = 0.85 \begin {gather*} \frac {12\,a\,\mathrm {sinh}\left (2\,c+2\,d\,x\right )+\frac {3\,a\,\mathrm {sinh}\left (4\,c+4\,d\,x\right )}{2}-\frac {3\,b\,\mathrm {sinh}\left (2\,c+2\,d\,x\right )}{4}+\frac {3\,b\,\mathrm {sinh}\left (4\,c+4\,d\,x\right )}{4}+\frac {b\,\mathrm {sinh}\left (6\,c+6\,d\,x\right )}{4}+18\,a\,d\,x-3\,b\,d\,x}{48\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________